home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6873 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.th-darmstadt.de!news
  2. From: enno@inferenzsysteme.informatik.th-darmstadt.de (Enno Sandner)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: C++ gurus, I have a question for you!
  5. Date: 19 Feb 1996 19:35:24 +0100
  6. Organization: Fachbereich Informatik, TH Darmstadt
  7. Sender: enno@kitz.inferenzsysteme.informatik.th-darmstadt.de
  8. Message-ID: <lt68d36u4z.fsf@kitz.inferenzsysteme.informatik.th-darmstadt.de>
  9. References: <31281804.687F@iglou.com>
  10. NNTP-Posting-Host: kitz.intellektik.informatik.th-darmstadt.de
  11. In-reply-to: "Abe L. Getchell"'s message of Mon, 19 Feb 1996 06:26:12 GMT
  12. X-Newsreader: Gnus v5.1
  13.  
  14. In article <31281804.687F@iglou.com> "Abe L. Getchell" <panther@iglou.com> writes:
  15.  
  16.    How is it possible to check if a variable has been
  17.    initialized yet?  If I do 'if ( !a ) { int a = 1 }' I get
  18.    an error message.  Please, any help would be great.  Reply
  19.    to the group or in mail.  Thanks in advance!
  20.  
  21. No,
  22. there's no direct way. However you're free to wrap the variable
  23. in an object that provides the desired functionality.
  24.  
  25.         Enno
  26.